package com.itany.user.service;

import com.github.pagehelper.PageInfo;
import com.itany.exception.*;
import com.itany.pojo.User;
import com.itany.vo.ActionResult;

/**
 * Created by tyh on 2018/9/22.
 */
public interface IUserService {


     PageInfo<User> findUsers(Integer pageNo, Integer pageSize);

     User login(User user) throws RequestParamsException, WrongUsernameOrPasswordException;


    /**
     * 获取手机验证码
     * @param phone 手机号
     * @return
     */
     ActionResult getphonecode(String phone);


    /**
     * 用户注册
     */
     void register(String phone,String password,String repassword,String phonecode) throws RequestParamsException,
             InconsistentPasswordsException, PhoneCodeErrorException, DuplicatePhoneException, MalformedPhoneException;
}
